#pragma once
#include "mcpoint2d.h"

class McPoint3D :
	public McPoint2D
{
public:
	McPoint3D(void);
	~McPoint3D(void);

	McPoint3D(double x1, double y1, double z1);
	McPoint3D(const McPoint& p);	

	// OPERATORS

	McPoint3D operator+(const McPoint3D& p);
	McPoint3D operator-(const McPoint3D& p);
	McPoint3D operator*(const double scale);
	McPoint3D& operator=(const McPoint3D& p);
	bool operator==(const McPoint3D& p);

	// OPERATIONS
	void Scale(const double scale);
	double Distance(const McPoint& p) const;

	void SetZ(const double z1);
	void Set(const double x1, const double y1, const double z1);
	void Get(double& x1, double& y1, double& z1) const;

	// ACCESS
	double Z() const;
	double GetZ() const;
	double & rZ();

	// INQUIRY

public:
	double z;
};
